package com.lyf.juc.practice.nju;

import org.junit.Test;

import java.util.concurrent.atomic.AtomicBoolean;

/**
 * @author LYF
 * @date 2022/7/7
 */
public class TestLang {
    @Test
    public void test1(){

        int i=0;
        int c=0;
        do {
            System.out.println("执行-"+(++c));// 11
        }while (i++<10);
        c=0;
        i=0;
        while (i++<10){
            System.out.println("执行-"+(++c)); // 10
        }

        //AtomicBoolean

    }




}
